package net.iceflow.dunsel.client.command;

import net.iceflow.dunsel.client.CommandableFacade;
import net.iceflow.dunsel.commons.commandqueue.Command;
import net.iceflow.dunsel.commons.commandqueue.CommandQueueContext;

/**
 * Disconnects from the server.
 */
public class DisconnectCommand implements Command<CommandQueueContext<CommandableFacade>> {

    @Override
    public void execute(CommandQueueContext<CommandableFacade> context) {
        context.getModel().notifyDisconnection();
    }
}
